home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2483 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news-m01.ny.us.ibm.net!usenet
  2. From: mitch@ibm.net
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: 3D Dialog Boxes
  5. Date: Thu, 18 Jan 1996 19:24:04 GMT
  6. Organization: NRMA
  7. Message-ID: <4dk2nc$1uak@news-s01.ny.us.ibm.net>
  8. References: <4d98vr$5q6@felix.junction.net> <4dh6hk$4qn@moon.glo.be>
  9. NNTP-Posting-Host: slip202-135-13-100.sy.au.ibm.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. yanahond@glo.be (Thomas De Vos) wrote:
  13.  
  14. >heppner@portage.net (Donald Heppner) wrote:
  15.  
  16. >>I was wondering what is involved to make a dialog box 3D sytle in Borland
  17. >>C++ 4.0.  If someone could tell me what to look up in the manuals, or can
  18. >>offer some advice, I would appreciate it.
  19.  
  20. >>Thanks,
  21. >>Donald
  22.  
  23. >I have also search for the 3D dialog boxes for a while !
  24. >what I found was that you must include the 3D library (ctl3d.lib)
  25.  
  26. You will have to call the some of the functions in ctl3d.dll, namely
  27. (in Visual C++ it's like this):
  28.  
  29.     In your applications InitInstance():      
  30.  
  31.             Ctl3dRegister(AfxGetInstanceHandle());      
  32.         Ctl3dAutoSubclass(AfxGetInstanceHandle());  
  33.  
  34.     In your application's ExitInstance():
  35.  
  36.         Ctl3dUnregister(AfxGetInstanceHandle());    
  37.  
  38.     In your Dialog's OnCtlColor (or equivalent)
  39.  
  40.         Ctl3dColorChange();
  41.  
  42. You'll need to include ctl3d.h and ctl3d.dll will need to be in your
  43. path somewhere, probably windows.  And link with ctl3d.lib.
  44.  
  45. Mitch
  46.  
  47.  
  48.  
  49.